<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var str="一";
			var ascii=str.charCodeAt(0);
			console.log(ascii);
			var yuan=String.fromCharCode(ascii);
			console.log(yuan);
		</script>
	</body>
</html>
